app.controller("examAnalysisCtrl",function($scope,$state,$http,$ionicLoading){
    //用户数据
    var user_info = JSON.parse(localStorage.getItem("UserInfo"));
    angular.element(document).ready(function(){
        $scope.examName=exam_subject.examName;
        $scope.examIssueNum = exam_subject.examIssueNum;
        // //获取考试列表
        // var url = "http://www.xianfenglearn.com:8080/partybuilding/app/findExamUserNum";
        // $http({
        //     url: url,
        //     method: "POST",
        //     headers:{'Content-Type':'application/x-www-form-urlencoded'},
        //     data: {userId:user_info.userId,examCode:exam_subject.examCode}
        // }).success(function (data) {
        //         $scope.examUserNum =data.examUserNum;
        //     })
        //     .error(function () {
        //         $ionicLoading.show({
        //             template: "获取数据失败，请联系管理员",
        //             duration: 3000
        //         });
        //     });
    })
    //试卷目录
    $scope.openExamCatalogue = function () {
        $state.go("home.examSubjectAnswer");

    }

});